/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk.local;

import com.qihoo.psdk.util.h;

class f extends Thread {
    public void run()
  {
    try
    {
      label211: 
      while (c.a(this.a))
        try
        {
          sleep(c.m());
          c.a(c.e().a(c.f()));
          if (c.g())
          {
            c.b(c.e().a(c.f(), c.h(), c.i()));
            if (c.n())
            {
              h.a("QLocalSession", "ts: " + com.qihoo.psdk.util.a.f() + ", bHeartbeat: " + c.n());
              break label211:
            }
            h.a("QLocalSession", "ts: " + com.qihoo.psdk.util.a.f() + ", bHeartbeat: " + c.n());
            c.a(false);
            break label221:
          }
          h.a("QLocalSession", "ts: " + com.qihoo.psdk.util.a.f() + ", bRegister/sendHeart: " + c.g());
        }
        catch (Exception localException1)
        {
          c.a(this.a, false);
          c.a(false);
          h.a("QLocalSession", localException1);
          break label211:
        }
        catch (Error localError)
        {
          c.a(this.a, false);
          c.a(false);
          h.a("QLocalSession", localError);
        }
      label221: sleep(4000L);
      c.d(this.a);
    }
    catch (Exception localException2)
    {
      c.a(false);
      h.a("QLocalSession", localException2);
    }
  }
}